def test3(str):
    if str == "":
        return ""
    else:
        return test3(str[1:])+str[0]
str = input("从键盘输入一串字符:")
print(test3(str))